from django.conf.urls.defaults import *
from django.contrib.auth.views import login, logout

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from Molex.node.views import index,post,node

urlpatterns = patterns('',
    (r'^$', index),
    (r'^index/$', index),
    (r'^post/(\d*)/$', post),
    (r'^node/(\d*)/$', node),
    
    (r'^signin/$',login, {'template_name':'login.html'}),
    (r'^signout/$',logout,{'next_page':'/'}),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    (r'^admin/', include(admin.site.urls)),
    (r'^static/(?P<path>.*)$', 'django.views.static.serve',{'document_root':'static/','show_indexes':True,}),
)
